package de.pixelate.flixelprimer
{
	import org.flixel.FlxSprite;
	
	public class Ricochet extends FlxSprite
	{
		
		public static const FORWARD:String = "forward";
		public static const LEFT:String = "left";
		public static const RIGHT:String = "right";
		
		public function Ricochet(X:Number, Y:Number, direction:String = FORWARD)
		{
			super(X, Y);
			createGraphic(16, 3, 0xFFFF3300);
			velocity.x = 750;
			velocity.y = 0;
			
			switch (direction)
			{
				case LEFT:
					velocity.y = 100;
					break;
				case RIGHT:
					velocity.y = -100;
					break;
			}

		}
	}
}